<?php

namespace Database\Factories;

use App\Models\RoleModel;
use Illuminate\Database\Eloquent\Factories\Factory;

class RoleFactory extends Factory
{
    protected $model = RoleModel::class;

    private array $roles = ['admin', 'user'];

    public function definition(): array
    {
        return [
            'role' => $this->roles[rand(0, 1)],
        ];
    }
}
